package com.vol.controller.sys;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.vol.entity.Result;
import com.vol.requestparams.LoginParams;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.vol.sys.LoginService;

@RestController
@RequestMapping("api/user")
public class LoginController {

    @Autowired
    private LoginService loginService;
    @RequestMapping("login")
    public Result login(@RequestBody LoginParams loginParams) throws JsonProcessingException {
        return loginService.login(loginParams);
    }

}
